<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript" src="js/sign_js.js"></script>
<link type="text/css" href="css/sign.css" rel="stylesheet" />

<script>
	/**
	 * 处理company_name的element的默认值,重新请求依旧显示最后一次选择的值为默认
	 */
	function change() {
		$("#name").val("${name}");
	}
	
	function effect_touch_big() {
		$("tr").bind("mouseover",function(){$(this).addClass("effect_touch_big");})
		$("tr").mouseover(function(){$(this).addClass("effect_touch_big");})  
	.mouseout(function(){$(this).removeClass("effect_touch_big");})
	}
	
	window.onload = function() {
		change();
		effect_touch_big();
	}
</script>

<style type="text/css">

.effect_touch_big
{
background-color: yellow;
}

.add_button{
	border: 1px solid #0a7eaf;
	height: 2rem;
	background-color: Highlight;
	vertical-align: middle;
	line-height: 2rem;
	width: 5rem;
}

.add_button:hover {
	background-color: White;
	color: Highlight;
}

.tr-head {
	background-color: green;
}
</style>

</head>
<%
String path=request.getContextPath();
String ipPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
String basePath = ipPath +path;
%>
<body>
<h1 align="center">金誉管理流程列表</h1>
<div style="margin-left: auto;margin-right:auto;width:100%">
	<!--  查询  -->
	<form action="getList.do" method="post">
		客户姓名: <input type="text" id="name" name="name" />
		<input type="submit" value="查询" />
	</form>

	<br />

	<table class="tbDetail">
		<tr align="center" class="tr-head">
			<td>编号</td>
			<td>客户姓名</td>
			<td>统一社会信用代码</td>
			<td>办公地址</td>
			<td>工商登记地</td>
			<td>贷款行</td>
			<td>申报金额</td>
			<td>详情</td>
			<td>
			<a href="<%=basePath %>/loadApply.do?id=0" target="_blank">增加</a>
			</td>
			
		</tr>
		<c:set var="index" value="0" />
		<c:forEach items="${list}" var="bean">
			<c:set var="index" value="${index+1 }" />
			<tr class="tr-class">
				<td>${index }</td>
				<td>${bean.name }</td>
				<td>${bean.code }</td>
				<td>${bean.address }</td>
				<td>${bean.register }</td>
				<td>${bean.bank }</td>
				<td><fmt:formatNumber value="${bean.amount}" pattern="#,##0.00"/></td>
				<td>详情</td>
				<td>
				<a href="<%=basePath %>/loadApply.do?id=${bean.id}" target="_blank">修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
	</div>
</body>
</html>